<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>gh-7977</title>
</head>
<body>
<button>click me</button>
<script>
    function handler () {
        for (let i = 0; i < 100; i++) {
            fetch('http://localhost:3000/api/data');
        }
    }

    document.querySelector('button').addEventListener('click', handler);
</script>
</body>
</html>
